﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GUI
{
	public partial class Config : Form
	{
		public Config()
		{
			InitializeComponent();
		}

		private void okButton_Click(object sender, EventArgs e)
		{
			///TODO: Save Iteams to Board
			
			

			this.Close();
		}

		private void cancelButton_Click(object sender, EventArgs e)
		{
			//throw away all info and close
			this.Close();
		}

		private void minPlayersNumericUD_ValueChanged(object sender, EventArgs e)
		{
			if (maxPlayersNumericUD.Value < minPlayersNumericUD.Value)
			{
				maxPlayersNumericUD.Value = minPlayersNumericUD.Value;
			}
		}

		private void maxPlayersNumericUD_ValueChanged(object sender, EventArgs e)
		{
			if (minPlayersNumericUD.Value > maxPlayersNumericUD.Value)
			{
				maxPlayersNumericUD.Value = minPlayersNumericUD.Value;
			}
		}
	}
}
